pvh: call pit_init for pvh also
authorMukesh Rathor <mukesh.rathor@oracle.com>
Tue, 11 Mar 2014 12:56:50 +0000 (13:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Mar 2014 12:56:50 +0000 (13:56 +0100)
commitc30c544b199f70eada597c7352cdcb44648f6dcd
tree5342f3577e3ceadff97a2f682f0b6cbede2f11ff
parent819c084b29c7adcf0da9282c1a20f0dad9c18fed
pvh: call pit_init for pvh also

During halt of a pvh guest, the guest may do speaker shutdown. This
results in call to handle_speaker_io in xen. It will hang on the vpit
spin lock because it has not been initialized.
Since, pit_init is also called for both pv and hvm, the call is
moved to a more generic place.

Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domain.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/i8254.c
xen/include/asm-x86/hvm/vpt.h